<h1>Editing dish</h1>

<% form_tag :action => 'update', :id => @dish do %>
  <%= error_messages_for 'dish' %>

	<p><label for="dish_name">Name</label><br/>
	<%= text_field 'dish', 'name'  %></p>
	
	<p><label for="dish_description">Description</label><br/>
	<%= text_area 'dish', 'description'  %></p>
	
	<!--
	<%= image_tag(image_url_in_server(@dish.image_url), :size => "180x150" ) %><br/>
	<input type="button" onclick="show_file_field()" value="Update Image"><br/>
	
	<p><label for="dish_image_url">Choose a image to upload</label><br/>
	<%= file_field(:file, :image) %></p>
	-->
	
  <%= submit_tag 'Edit' %>
<% end %>

<%= link_to 'Show', :action => 'show', :id => @dish %> |
<%= link_to 'Back', :action => 'list' %>

<script>

</script>